LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)

LOCAL_CFLAGS += -I. \
    -DLUA_USE_LINUX \
    -D__ANDROID__

#LOCAL_LDFLAGS += -lreadline -lhistory -lncurses

LOCAL_MODULE := lua
LOCAL_LDLIBS := -llog

CORE_C=	lapi.c lcode.c ldebug.c ldo.c ldump.c lfunc.c lgc.c llex.c lmem.c \
	lobject.c lopcodes.c lparser.c lstate.c lstring.c ltable.c ltm.c  \
	lundump.c lvm.c lzio.c
LIB_C=	lauxlib.c lbaselib.c ldblib.c liolib.c lmathlib.c loslib.c ltablib.c \
	lstrlib.c loadlib.c linit.c
LUAJAVA_C=luajava.c

LOCAL_SRC_FILES :=  $(CORE_C) $(LIB_C) $(LUAJAVA_C)

LOCAL_ALLOW_UNDEFINED_SYMBOLS := true

include $(BUILD_SHARED_LIBRARY)

$(call import-module, android/support)

